import request from "../utils/request.js"

export function getOpenId(data){
	return request({
		url: "/getOpenId",
		method: "get",
		data
	})
}



export function useredit(data){
	return request({
		url: "/user/edit",
		method: "post",
		data
	})
}

export function category(data){
	return request({
		url: "/category",
		method: "post",
		data
	})
}

export function booklist(data){
	return request({
		url: "/booklist",
		method: "post",
		data
	})
}

export function bookdetailed(data){
	return request({
		url: "/bookdetailed",
		method: "get",
		data
	})
}


export function userauth(data){
	return request({
		url: "/user/auth",
		method: "post",
		data
	})
}

export function pay(data){
	return request({
		url: "/pay",
		method: "post",
		data
	})
}


export function borrowbook(data){
	return request({
		url: "/borrowbook",
		method: "post",
		data
	})
}

export function borrowlist(data){
	return request({
		url: "/borrowlist",
		method: "post",
		data
	})
}


export function area(data){
	return request({
		url: "/area",
		method: "post",
		data
	})
}
